package com.leo.blog.dto;

import java.util.List;

import com.leo.blog.entity.Visit;
import com.leo.blog.enums.VisitStateEnum;

public class VisitExecution {
	//结果状态
	private int state;
	//状态标识
	private String stateInfo;
	//游客数量
	private int count;
	//TimesCount
	private Long timesCount;
	
	//操作(增删改的时候使用)
	private Visit visit;
	//列表(查询列表的时候使用)
	private List<Visit> visitList;
	
	//列表(查询列表的时候使用)
	private List<?> visitList2;
	private int type;
					
	//构造函数
	public VisitExecution() {
						
	}
					
	//操作失败的时候使用的构造器
	public VisitExecution(VisitStateEnum stateEnum) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
	}
					
	//操作成功的时候使用的构造器
	public VisitExecution(VisitStateEnum stateEnum, Visit visit) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.visit = visit;
	}
					
	//操作成功的时候使用的构造器
	public VisitExecution(VisitStateEnum stateEnum, List<Visit> visitList) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.visitList = visitList;
	}
	
	//操作成功的时候使用的构造器
	public VisitExecution(VisitStateEnum stateEnum, List<?> visitList2, int type) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.type = type;
		this.visitList2 = visitList2;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getStateInfo() {
		return stateInfo;
	}

	public void setStateInfo(String stateInfo) {
		this.stateInfo = stateInfo;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public Visit getVisit() {
		return visit;
	}

	public void setVisit(Visit visit) {
		this.visit = visit;
	}

	public List<Visit> getVisitList() {
		return visitList;
	}

	public void setVisitList(List<Visit> visitList) {
		this.visitList = visitList;
	}

	public Long getTimesCount() {
		return timesCount;
	}

	public void setTimesCount(Long timesCount) {
		this.timesCount = timesCount;
	}

	public List<?> getVisitList2() {
		return visitList2;
	}

	public void setVisitList2(List<?> visitList2) {
		this.visitList2 = visitList2;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}
	
	
	
}
